name: factoid-qa
endpoints:
- respond
compose:
  env_file:
  - .env
  build:
    args:
      SERVICE_PORT: 8071
      SERVICE_NAME: factoid_qa
      FLASK_APP: server
    context: .
    dockerfile: ./skills/factoid_qa/Dockerfile
  command: flask run -h 0.0.0.0 -p 8071
  environment:
  - FLASK_APP=server
  deploy:
    resources:
      limits:
        memory: 256M
      reservations:
        memory: 256M
  volumes:
  - ./skills/factoid_qa:/src
  - ./common:/src/common
  ports:
  - 8071:8071
proxy:
  command:
  - nginx
  - -g
  - daemon off;
  build:
    context: dp/proxy/
    dockerfile: Dockerfile
  environment:
  - PROXY_PASS=dream.deeppavlov.ai:8071
  - PORT=8071
